package reduce.fz.com.reduce.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by qingshengzheng on 15/7/21.
 */
public class User implements Serializable {
    //用户id
    public Long uid;
    //用户名
    public String username;
    //个人介绍
    public String intr;
    //密码
    public String password;
    //昵称
    public String nickname;
    //手机号
    public String mobile;
    //头像url
    public String avatar;
    //邮箱
    public String email;
    //性别 M男 F女
    public String sex;
    //微博openid

    public String weixin;
    public String weibo;
    public String qq;


    //是否启用预留
    public String isenable;
    //生日
    public String birthday;

    public int age;
    //最近一次登录时间(预留)
    public long lastlogintime;


    //平台来源
    public String platform;
    //开放用户id
    public String openid;
    //token
    public String token;
    //刷新token
    public String refresh_token;
    //过期时间
    public Long expires_in;
    //图片类型
    public String imageType = "url";
    public UserAttach userAttach = new UserAttach();


    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIntr() {
        return intr;
    }

    public void setIntr(String intr) {
        this.intr = intr;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }


    public String getIsenable() {
        return isenable;
    }

    public void setIsenable(String isenable) {
        this.isenable = isenable;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public long getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(long lastlogintime) {
        this.lastlogintime = lastlogintime;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public Long getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(Long expires_in) {
        this.expires_in = expires_in;
    }

    public String getImageType() {
        return imageType;
    }

    public void setImageType(String imageType) {
        this.imageType = imageType;
    }

    @Override
    public boolean equals(Object o) {
        User user = (User) o;
        if ((uid + "").equals(user.uid + "")) return true;
        else return false;
    }
}
